package com.njlime.core.sdk.wechat.jsapi;

import com.njlime.core.sdk.wechat.open.OpenAccessToken;
import org.apache.log4j.Logger;

import java.util.HashMap;
import java.util.Map;


public class WxCache {
    static Logger logger = Logger.getLogger(WxCache.class);

    private static WxCache wxCache = null;

    public static WxCache getInstance() {
        if (wxCache == null) {
            wxCache = new WxCache();
        }
        return wxCache;
    }

    public static Map<String, Object> map;

    //微信AccessToken
    public static Map<String, AccessToken> accessTokenMap = new HashMap<String, AccessToken>();

    //微信jsapiTicket
    public static Map<String, JsapiTicket> jsapiTicketMap = new HashMap<String, JsapiTicket>();

    //微信开放平台access_token
    public static Map<String, OpenAccessToken> openAccessTokenMap = new HashMap<String, OpenAccessToken>();


    public static String accessTokenKey = "access_token";

    public static String jsapiTicketKey = "jsapi_ticket";

    public static String openAccessTokenKey = "open_access_token";

}
